package com.tron.dobest.mybatisplus.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tron.dobest.mybatisplus.entity.Role;
import com.tron.dobest.mybatisplus.entity.User;
import com.tron.dobest.mybatisplus.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<Role> getInfo(QueryWrapper<?> wrapper) {
        return this.getBaseMapper().getInfo(wrapper);
    }

    @Override
    public Page<Role> getPage(QueryWrapper<?> wrapper, Page page) {
        return this.getBaseMapper().getPage(wrapper,page);
    }
}
